<template>
<div>
  <div class="shopln-header" style="z-index: 10;
    position: fixed;
    width: 100%;
    background: #fff;">
    <div @click="goReturn">
      <div class="icon">
        <van-icon name="arrow-left" />
      </div>
    </div>
    <p>{{shopName}}</p>
    <!--<van-icon name="star-o" @click="charg" ref="abc"/>-->
  </div>
  <shoplnswiper></shoplnswiper>
</div>
</template>

<script>
import shoplnswiper from './components/swiper'
export default {
  name: 'school',
  data () {
    return {
      shopName: ''
    }
  },
  mounted () {
    this.shopName = this.$route.query.shopName
  },
  methods: {
    charg () {
      this.$refs.abc.style.background = '#fff'
    },
    goReturn () {
      this.$router.go(-1)
    }
  },
  components: {
    shoplnswiper
  }
}
</script>
<style scoped>
.shopln-header{
  height: 3rem;
  line-height: 3rem;
  overflow: hidden;
}
i.van-icon.van-icon-arrow-left {
    position: absolute;
    left: 16px;
    color: #1989fa;
    line-height: 48px;
    font-size: 14px;
}
i.van-icon.van-icon-star-o {
    float: right;
    position: relative;
    top: -64px;
    right: .6rem;
    color: #1989fa;
}
p {
    position: relative;
    top: -15px;
    width: 80%;
    margin-left: 10%;
}
</style>
